package org.softmed.rest.admin.file;

import javax.swing.tree.DefaultMutableTreeNode;

public class DirectoryNode extends CustomFileNode {

	boolean loaded = false;

	public DirectoryNode(String string) {
		super(string);
		setAllowsChildren(true);
	}

	public boolean isLeaf() {
		if (!loaded)
			return false;

		return super.isLeaf();
	}

	public int getChildCount() {
		// if (!loaded)
		// return 0;
		// System.out.println(fullPath + " has " + super.getChildCount()
		// + " children ");
		return (super.getChildCount());
	}



	public boolean isLoaded() {
		return loaded;
	}

	public void setLoaded(boolean loaded) {
		this.loaded = loaded;
	}


}
